/*
 * Lab2.cpp
 *
 *  Created on: 2012-02-07
 *      Author: tony
 */
#include <iostream>
#include <cmath>
#include <cstdlib>

using namespace std;

int main() {
	int numbers[10];
	for (int i = 0; i < 10; i++)
		cout << numbers[i] << " ";
	cout << endl;

	srand(time(0));

	for (int i = 0; i < 10; i++) {
		int temp = (int) rand();
		numbers[i] = (static_cast<double>(temp % 2000)) / 100.0 - 10.0;
	}

	for (int i = 0; i < 10; i++)
		cout << numbers[i] << " ";
	cout << endl;
}
